import { useMainContentContext } from "@/service/general/publicStatic";
import { ReactNode, useEffect, useState } from "react";

export const MainContentView = ({mContent}:{mContent:ReactNode}) => {
    const {menuContent, setFirstHistory} = useMainContentContext();
    useEffect(() => {
        setFirstHistory(mContent);
    }, [mContent]);
    
    return (
        <>
            {menuContent}
        </>
    );
}